package errorx

// 成功返回
const OK uint32 = 200

/**(前3位代表业务,后三位代表具体功能)**/

// 全局错误码

const ServerCommonError uint32 = 100001
const RequestParamError uint32 = 100002
const TokenExpireError uint32 = 100003
const TokenGenerateError uint32 = 100004
const DbError uint32 = 100005
const DbUpdateAffectedZeroError uint32 = 100006

// 用户模块

const UserNameError = 200001
const UserPasswordError = 200002
const UserExits = 200003
const UserInsertError = 200004
const UserIdUnknown = 200005
const UserMobileUnknown = 200006
const UserNameEmpty = 200007
const UserMobileEmpty = 200008
const UserPasswordEmpty = 200009
const UserNotExits = 200010
const VerificationEmpty = 400001
const VerificationExpired = 400002
const VerificationError = 400003

// 文章

const ArticleTitleEmpty = 300001
const ArticleContentEmpty = 300002
const ArticleCoverEmpty = 300003
const ArticleSortTypeInvalid = 300003
const ArticleIdUnknown = 300004

// 聊天

const WsConnectError = 300001

// 关注
const FollowedUserIdEmpty = 400001
const CannotFollowSelf = 400002
